package com.funquer.cms.controller;

import com.funquer.commons.log.LogManager;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-3-21
 * Time: 上午10:45
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping("/ftlController")
public class HelloFtlController {

    private Logger processLog = LogManager.getProcessLog (this.getClass());


    @RequestMapping("/hello")
    public String hello(Model model){
        model.addAttribute("username","张三丰");
        processLog.info("sssssssss");
        return "hello";
    }


    @RequestMapping("/helloJsp")
    public String helloJsp(Model model){
        model.addAttribute("username","张三丰");
        return "cms/hello";
    }
}
